/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2022-07-10
 * Time:11:17
 */

class Alg<T extends Comparable<T>>{
    public T findMaxValue(T[] array){
        T maxVal=array[0];
        for (int i = 1; i < array.length; i++) {
            if(array[i].compareTo(maxVal)>0){
                maxVal=array[i];
            }
        }
        return maxVal;
    }
}
public class Test {
    public static void main(String[] args) {

    }
}
